package controller.admin;

import com.jfinal.aop.Before;
import com.jfinal.aop.Clear;
import com.jfinal.core.Controller;

import common.inter.CorsInter;
import common.kit.PropKits;
import common.kit.QiniuKit;

@Clear
@Before(CorsInter.class)
public class QiniuController extends Controller{
	/**
	 * 生成Token
	 */
	public void index() {
		set("token" , QiniuKit.getUpToken());
		set("domain", PropKits.getDomain());
		renderJson();
	}
}
